package org.naigu.peach.dal.dao;

import org.naigu.peach.dal.dataobject.UserDO;
import guda.grape.autogen.common.page.BaseQuery;
import java.util.List;

public interface UserDAO {


    Long insert(UserDO user);


    UserDO getUserById(Long userId);


    boolean delUserById(Long userId);

    List<UserDO> getUserByIds(List idsList);

    /**
     * 清空测试用例加入的autoincrement
     */
    void cleanAutoIncrement(Long userId);

    List<UserDO> selectForPage(BaseQuery baseQuery);

    int countForPage(BaseQuery baseQuery);

    void updateByIdSelective(UserDO user);

    List<UserDO> selectByEmail(String email);

    List<UserDO> selectByEmailAndPass(String email,String pass);

    List<UserDO> selectByEmailAndRegCode(String email,String regCode);

}
